package com.shanjupay.merchant.convert;

import com.shanjupay.merchant.api.dto.MerchantDTO;
import com.shanjupay.merchant.vo.MerchantDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author whb
 * @create 2021-12-01 10:39
 * @desciption 资质申请信息VO和DTO之间的转换
 */
@Mapper
public interface MerchantDetailConvert {
    //转换类实例
    MerchantDetailConvert INSTANCT= Mappers.getMapper(MerchantDetailConvert.class);

    /**
     * vo转换成dto
     * @param merchantDetailVO
     * @return
     */
    MerchantDTO vo2dto(MerchantDetailVO merchantDetailVO);

    /**
     * dto转换成vo
     * @param merchantDTO
     * @return
     */
    MerchantDetailVO dto2vo(MerchantDTO merchantDTO);
}
